package com.exam.userms;

/**
 * 用户数据类
 * Created by guopei on 2020/7/1
 */
public class UserData {
    /**
     * 用户id
     */
    private Integer id;
    /**
     * 用户名
     */
    private String name;
    /**
     * 用户手机号
     */
    private String phone;
    /**
     * 选中状态
     */
    private Boolean checked = false;

    /**
     * 默认构造器
     */
    public UserData() {

    }

    /**
     * 有参构造器
     *
     * @param userName
     * @param phone
     */
    public UserData(String userName, String phone) {  //这里只采用用户名和手机号
        super();
        this.name = userName;
        this.phone = phone;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public String getName() {             //获取用户名
        return name;
    }

    public void setName(String name) {  //输入用户名
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
